﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SWSoft.Framework;

namespace LogViewer
{
    public partial class FormLogViewer : Form
    {
        public FormLogViewer()
        {
            InitializeComponent();
        }

        private void FormLogViewer_Load(object sender, EventArgs e)
        {
            dtpbegin.Value = DateTime.Now.AddDays(-1);
            dtpend.Value = DateTime.Now;
        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {
            dataGridView1.DataSource = DBVisitor.ExecuteTable(SqlLoad.GetFormat(SQ.T00001,dtpbegin.Text,dtpend.Text));
        }
    }
}
